package com.quan.bookmall.service;

import com.quan.bookmall.dto.BookDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BookService {
    
    BookDTO findById(Long id);
    
    Page<BookDTO> findAll(Pageable pageable);
    
    Page<BookDTO> findByName(String name, Pageable pageable);
    
    BookDTO create(BookDTO bookDTO);
    
    BookDTO update(Long id, BookDTO bookDTO);
    
    void delete(Long id);
    
    boolean existsByIsbn(String isbn);
    
    boolean updateStock(Long id, Integer quantity);
} 